package net.WMisiedjan.WirelessRedstone.Permissions;

import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;

import com.nijiko.permissions.PermissionHandler;
import com.nijikokun.bukkit.Permissions.Permissions;

public class PPermissions3 implements IPermissions {

	private final transient PermissionHandler permissionHandler;

	public PPermissions3(final Plugin permissionsPlugin) {
		permissionHandler = ((Permissions) permissionsPlugin).getHandler();
	}

	public boolean hasPermission(final Player base, final String node)
	{
		return permissionHandler.has(base, node);
	}

}
